package com.dhl.prototypepattern.prototype.deepcopy;

/**
 * @title: Deep
 * @Author danghailiang
 * @Date: 2022/7/28 21:53
 * @Version 1.0
 */
public class DeepYang implements Cloneable {
    private Long id;
    private String name;

    public DeepYang() {
    }

    public DeepYang(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

//    @Override
//    public String toString() {
//        return "DeepYang{" +
//                "id=" + id +
//                ", name='" + name + '\'' +
//                '}';
//    }

    @Override
    public DeepYang clone() throws CloneNotSupportedException {
        return (DeepYang)super.clone();
    }

}
